package com.zhao.concreteState;

import com.zhao.state.ILiftState;

public class StopLift extends ILiftState {

    @Override
    public void openDoor() {
        System.out.println("电梯停止，无法打开电梯门...");
    }

    @Override
    public void closeDoor() {
        System.out.println("电梯停止，无法关闭电梯门...");
    }

    @Override
    public void startLift() {
        System.out.println("启动电梯...");
        getContext().setCurrentState(new StopLift());
    }

    @Override
    public void stopLift() {
        System.out.println("重复关闭电梯...");
    }
}
